import java.util.Scanner;
class Circle{
    double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public Circle() {
        this.radius = radius;
    }

    public double getArea(){
        return Math.PI * radius * radius;
    }
    public double getLength(){
        return Math.PI * 2 * radius;
    }
}
class Column extends Circle{
    double height;
    Circle bottom;

    public Column() {
        super();
    }

    public Circle getBottom() {
        return bottom;
    }

    public void setBottom(Circle bottom) {
        this.bottom = bottom;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    public double getVolume(){
        return bottom.getArea() * height;
    }
}

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double r=scanner.nextDouble();
        double h=scanner.nextDouble();
        Circle c = new Circle(r);
        Column column=new Column();
        column.setBottom(c);
        column.setHeight(h);
        System.out.printf("底面面积和周长分别为：%.2f %.2f\n",column.getBottom().getArea(),column.getBottom().getLength());
        System.out.printf("体积为：%.2f\n",column.getVolume());
        scanner.close();
    }
}

/* 请在这里填写答案 */